﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back-end.Master" AutoEventWireup="true" CodeBehind="SuaCauHoi.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.SuaCauHoi" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <div>
            <table border="0" cellspacing="2px" cellpadding="4px" width="74%">
            	<tr>
            		<td>
                    Nội dung
                    <span style="color:red">*</span>
                    </td>
                    <td colspan="3">
                        <CKEditor:CKEditorControl ID="ckeNoiDung" runat="server" Width="820px" Height="50px" BasePath=" ~/ckeditor/"
                        ToolbarStartupExpanded="false" BorderWidth="0"
                        EnterMode="BR"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="ckeNoiDung" runat="Server" ForeColor="Red"
                        ErrorMessage="Nội dung không được để trống" ></asp:RequiredFieldValidator>
                    </td>
            	</tr>
                <tr>
            		<td>
                    Đáp án A
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <CKEditor:CKEditorControl ID="ckeDapAnA" runat="server" Width="360px" 
                        Height="40px" BasePath=" ~/ckeditor/" ToolbarStartupExpanded="false"
                         EnterMode="BR"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="Server" ControlToValidate="ckeDapAnA" ForeColor="Red"
                        ErrorMessage="Đáp án không được để trống"></asp:RequiredFieldValidator>
                    </td>
            		<td>
                    Đáp án B
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <CKEditor:CKEditorControl ID="ckeDapAnB" runat="server" Width="360px" 
                        Height="40px" BasePath=" ~/ckeditor/" ToolbarStartupExpanded="false"
                         EnterMode="BR"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="Server" ControlToValidate="ckeDapAnB" ForeColor="Red"
                        ErrorMessage="Đáp án không được để trống"></asp:RequiredFieldValidator>
                    </td>
            	</tr>
                <tr>
            		<td>
                    Đáp án C
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <CKEditor:CKEditorControl ID="ckeDapAnC" runat="server" Width="360px" 
                        Height="40px" BasePath=" ~/ckeditor/" ToolbarStartupExpanded="false"
                         EnterMode="BR"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="Server" ControlToValidate="ckeDapAnC" ForeColor="Red"
                        ErrorMessage="Đáp án không được để trống"></asp:RequiredFieldValidator>
                    </td>
            		<td>
                    Đáp án D
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <CKEditor:CKEditorControl ID="ckeDapAnD" runat="server" Width="360px" 
                        Height="40px" BasePath=" ~/ckeditor/" ToolbarStartupExpanded="false"
                         EnterMode="BR"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="Server" ControlToValidate="ckeDapAnD" ForeColor="Red"
                        ErrorMessage="Đáp án không được để trống"></asp:RequiredFieldValidator>
                    </td>
            	</tr>
                <tr>
            		<td>
                    Chủ đề
                    <span style="color:red">*</span>
                    </td>
                    <td colspan="2">
                        <asp:DropDownList ID="ddlChuDe" runat="server" DataTextField="TenCD" DataValueField="MaCD"
                        Border="1px solid black" Width="150px"></asp:DropDownList>
                    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                    
                    Độ khó
                    <span style="color:red">*</span>
                        <asp:DropDownList ID="ddlDoKho" runat="server" Border="1px solid black" Width="150px">
                            <asp:ListItem>Dễ</asp:ListItem>
                            <asp:ListItem>Trung Bình</asp:ListItem>
                            <asp:ListItem>Khó</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                    Đáp án
                    <span style="color:red">*</span>
                        <asp:DropDownList ID="ddlDapAn" runat="server" Border="1px solid black" Width="150px">
                            <asp:ListItem>A</asp:ListItem>
                            <asp:ListItem>B</asp:ListItem>
                            <asp:ListItem>C</asp:ListItem>
                            <asp:ListItem>D</asp:ListItem>
                        </asp:DropDownList>
                    </td>
            	</tr>
                <tr>
                    <td colspan="4">
                        <asp:Label ID="lblThongBao" runat="Server" CssClass="lblThongBao"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="btnThem">
            <asp:Button ID="btnXoaTuKhoa" runat="server" Text="Xóa từ khóa" OnClick="btnXoaTuKhoa_Click"/>
            <asp:Button ID="btnThem" runat="Server" Text="Sửa" OnClick="btnThem_Click"/>
            <asp:Button ID="btnQuayLai" runat="Server" Text="Quay lui" OnClick="btnQuayLai_Click" 
            CausesValidation="false"/>
        </div>
    </div>
</asp:Content>

